//
//  DTTargetView.h
//  DayToDo
//
//  Created by karry on 2021/1/25.
//

#import <UIKit/UIKit.h>

#import "DTItem.h"

NS_ASSUME_NONNULL_BEGIN

@interface DTTargetView : UIView

@property (nonatomic, strong) UIView *targetView;

@property (nonatomic, weak) UIBarButtonItem *barItem;

@property (nonatomic, copy) void(^didClickItemBlock)(DTItem *item);

@property (nonatomic, copy) void(^dissmissBlock)(void);

@property (nonatomic, strong) NSArray *items;


- (instancetype)initWithTargetView:(UIView *)targetView
                              item:(NSArray *)items;

- (instancetype)initWithTargetView:(UIView *)targetView
                              item:(NSArray *)items
                 noDismissDuration:(BOOL)noDismissDuration;

- (instancetype)initWithTargetView:(UIView *)targetView
                              item:(NSArray *)items
                            isChat:(BOOL)isChat
                    keyboardHeight:(CGFloat)keyboardHeight;

+ (instancetype)initWithBarItem:(UIBarButtonItem *)barItem
                           item:(NSArray *)items;

- (void)show;

@end

@interface DTTargetViewCell : UITableViewCell

@property (nonatomic, strong) UILabel *d_titleLabel;
@property (nonatomic, strong) UIImageView *d_imageView;



@end

NS_ASSUME_NONNULL_END
